package com.kandinfo.survey.weixin.service.impl;

import javax.annotation.Resource;

import org.springframework.data.mongodb.core.MongoTemplate;
import org.springframework.stereotype.Service;

import com.kandinfo.base.admin.repository.mongo.MongoRepository;
import com.kandinfo.survey.weixin.mongo.WxConfigure;
import com.kandinfo.survey.weixin.service.IWxMongoRelativeService;


@Service
public class WxMongoRelativeServiceImpl extends MongoRepository<WxConfigure, String> implements IWxMongoRelativeService {
	
    @Resource
    public void setMongoTemplate(MongoTemplate mongoTemplate) {
        super.setMongoTemplate(mongoTemplate);
    }
    
	@Override
	public WxConfigure save(WxConfigure wxConfigure) {
		
		return super.save(wxConfigure);
	}

	@Override
	public WxConfigure findOne(String appId) {
		
		return super.findOne(appId);
	}

	@Override
	public Class<? extends WxConfigure> getTClass() {
		
		return WxConfigure.class;
	}
	
}
